package com.cqjtu.eecs.mapper;

import com.cqjtu.eecs.entity.CourseGoalAssess;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 课程目标-考核环节 Mapper 接口
 * </p>
 *
 * @author
 * @since 2022-03-07
 */
@Mapper
@Repository
public interface CourseGoalAssessMapper extends BaseMapper<CourseGoalAssess> {
    // 通过环节idList查询
    List<CourseGoalAssess> selectByIdList(@Param("ids") List<Integer> ids);

    /**
     * 根据课程目标编号获取考核环节名及权重
     * @param courseGoalId
     * @return
     */
    List<Map<String, Object>> getAssessLinkMapByCourseGoalId(Integer courseGoalId);
}
